<?
class EPalinsesto_vidwiz extends Entity_vidwiz    {

    /**
     * Y-m-d
     * @access public
     */
    public $onairDate;

    /**
     * Lista dei video. Bisogna registrare gli ID dei video separati da virgole:
     * 
     * $videoList = 1,3,98,21
     * @access public
     */
    public $videoList;

    /**
     * Nome utente di chi ha creato il palinsesto
     * @access public
     */
    public $author;

    public $title;
    
    public $id;


    public function generateObject( $fields ) {
        $fields['videoList'] = implode(",",$fields['videoList']);
        foreach($this as $key => $value){
            if(isset($fields[$key]))
                $this->$key = $fields[$key];
                }
        $this->id = "";
        return $this;
    } // end of member function generateObject



} // end of EPalinsesto
?>
